package com.py.code.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 编码规则对象 tb_codingrules
 *
 * @author 童佳
 * @date 2024-11-13
 */
public class TbCodingrules extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @Excel(name = "序号")
    private Integer enCode;

    /**
     * 目标表单
     */
    @Excel(name = "目标表单")
    private String enForm;

    /**
     * 编号前缀
     */
    @Excel(name = "编号前缀")
    private String enPrefix;

    /**
     * 时间规则
     */
    @Excel(name = "时间规则")
    private String enTime;

    /**
     * 流水号/位
     */
    @Excel(name = "流水号/位")
    private Integer enNum;

    /**
     * 步长
     */
    @Excel(name = "步长")
    private Integer enStep;

    /**
     * 编号生成规则
     */
    @Excel(name = "编号生成规则")
    private String enRules;


    private String createBy;

    private Date createTime;

    /**
     * 最大值
     */
    private Integer maxNum;

    /**
     * 最后一次更新时间
     */
    private Date lastDate;

    public void setEnCode(Integer enCode) {
        this.enCode = enCode;
    }

    public Integer getEnCode() {
        return enCode;
    }

    public void setEnForm(String enForm) {
        this.enForm = enForm;
    }

    public String getEnForm() {
        return enForm;
    }

    public void setEnPrefix(String enPrefix) {
        this.enPrefix = enPrefix;
    }

    public String getEnPrefix() {
        return enPrefix;
    }

    public void setEnTime(String enTime) {
        this.enTime = enTime;
    }

    public String getEnTime() {
        return enTime;
    }

    public void setEnNum(Integer enNum) {
        this.enNum = enNum;
    }

    public Integer getEnNum() {
        return enNum;
    }

    public void setEnStep(Integer enStep) {
        this.enStep = enStep;
    }

    public Integer getEnStep() {
        return enStep;
    }

    public void setEnRules(String enRules) {
        this.enRules = enRules;
    }

    public String getEnRules() {
        return enRules;
    }


    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    public String toString() {
        return "TbCodingrules{" +
                "enCode=" + enCode +
                ", enForm='" + enForm + '\'' +
                ", enPrefix='" + enPrefix + '\'' +
                ", enTime='" + enTime + '\'' +
                ", enNum=" + enNum +
                ", enStep=" + enStep +
                ", enRules='" + enRules + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", maxNum=" + maxNum +
                ", lastDate=" + lastDate +
                '}';
    }
}
